package com.sun.mapper.ums;

import com.sun.pojo.UmsRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 后台用户角色表 Mapper 接口
 * </p>
 *
 * @author 妙妙屋
 * @since 2021-12-13
 */
public interface UmsRoleMapper extends BaseMapper<UmsRole> {

    List<UmsRole> getRoleByAdminId(Long id);

    void deleteAllMenu(Long roleId);

    void addMenu(Map map);
}
